package Test;
import com.example.zelonghu.testgps.AppContent;

import Entities.CatWitness;
import Entities.ClothesDonation;
import Entities.LoginReturnData;
import DateUtils.dateutils;
import Entities.Library;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zelonghu Q:975169216
 * @name testGPS2
 * @class name：Test
 * @class describe
 * @time 2019/6/27 10:09 AM
 * @change
 * @chang time
 * @class 用于模拟测试和单元测试的测试类，测试完毕删除
 */
public class Test  {

    /**
     * @author zelonghu
     * @time 2019/6/27  10:13 AM
     * @describe 测试模拟网络返回了正确的数据
     */
    public static List<LoginReturnData> get_info_fromtest(){
        List<LoginReturnData> rl = new ArrayList<>();
        rl.add(new LoginReturnData("true","123213","","我的名称","我的介绍"));
        return rl;
    }
    /**
     * @author zelonghu
     * @time 2019/6/27  10:13 AM
     * @describe 测试模拟网络返回了正确的数据
     */
    public static  List<Library> get_library_info_fromtest(){
        List<Library> rl = new ArrayList<>();
        rl.add(new Library("10000","10000", AppContent.libaray,
                "39.8591547930","116.2463378906","100","83219992",
                "北京市丰台区卢沟桥街道大瓦窑社区东南方向图书馆","www.website.com",
                "250200","","true"));
        rl.add(new Library("10001","10001",AppContent.libaray,
                "36.5940990856","117.3443698883","100","83219992",
                "中国山东省济南市历城区彩石镇图书馆","www.website.com",
                "250200","","true"));
        return rl;
    }

    /**
     * @author zelonghu
     * @time 2019/7/3  8:42 AM
     * @describe 返回两个catwitness对象
     */
    public static List<CatWitness> get_catwitness_info_fromtest(){
        List<CatWitness> cl = new ArrayList<>();
        cl.add(new CatWitness("10001","blackwhite",39.9989899,
                116.2463378090,"北医三院","良好",""));
        cl.add(new CatWitness("10002","blackblue",34.90909,
                116.2433330,"北医三院","良好",""));
        return cl;
    }

    /**
     * @author zelonghu
     * @time 2019/7/3  9:39 PM
     * @describe 返回一个系列的捐衣活动
     */
    public static List<ClothesDonation> get_Clothes_donation_fromtest(){
        List<ClothesDonation> cdl = new ArrayList<>();
        cdl.add(new ClothesDonation("10001","中国北京市北京市海淀区中关村大街59号",39.9710550000,
                116.3135980000,System.currentTimeMillis() +"" ,"无",
                "","需要100件衣服，支援贵州山区","正在进行"));
        cdl.add(new ClothesDonation("10002","中国山东省青岛市市南区银海路",36.0625700000,
                120.3359200000,System.currentTimeMillis() +"" ,"无",
                "","需要200件衣服，支援西藏高原","正在进行"));
        cdl.add(new ClothesDonation("10003","中国江苏省常州市武进区立学路",31.6845370000
                ,119.9544590000,System.currentTimeMillis() +"" ,"无",
                "","需要100件衣服，支援新疆山区","正在进行"));
        return cdl;
    }
}
